<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateVersionTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('version', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('version')->nullable()->comment('版本号');
            $table->tinyInteger('type')->default(1)->comment('平台类型 1 安卓 2 ios');
            $table->string('url', 150)->nullable()->comment('地址');
            $table->tinyInteger('is_update')->default(0)->comment('强制更新  1 强制更新 0 否');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('version');
    }
}
